<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo substr(I18n::$lang, 0, 2); ?>" lang="<?php echo substr(I18n::$lang, 0, 2); ?>">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="language" content="<?php echo I18n::$lang ?>" />
    <title><?php echo $title ?></title>
    <?php foreach ($styles as $file => $type) echo HTML::style($file, array('media' => $type)), PHP_EOL ?>
</head>

<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="brand" href="<?php echo URL::site('') ?>"><?php echo $site['name'] ?></a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="active"><a href="<?php echo URL::site('') ?>">Home</a> </li>
                        <li class="dropdown">
                            <a href="<?php echo URL::site('') ?>" class="dropdown-toggle" data-toggle="dropdown">Upload <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li class="nav-header">Upload Method</li>
                                <li><a href="<?php echo URL::site('') ?>">Local Upload</a></li>
                                <li><a href="<?php echo URL::site('welcome/remote') ?>">Remote Upload</a></li>
                                <li><a href="<?php echo URL::site('welcome/multi') ?>">Multi Upload</a></li>
                            </ul>
                        </li>
                        <li><a href="<?php echo URL::site('welcome/about') ?>">About</a></li>
                        <li><a href="<?php echo URL::site('welcome/contact') ?>">Contact</a></li>
                    </ul>
                    <ul class="nav pull-right">
                        <?php if (isset($loggedIn) && $loggedIn) : ?>
                            <li> <a href="">Hello, <?php echo $user->email; ?> </a></li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Options <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="<?php echo URL::site('user/manage') ?>">Manage Images</a></li>
                                    <li><a href="#">-</a></li>
                                    <li><a href="#">-</a></li>
                                    <li class="divider"></li>
                                    <li class="nav-header">User Settings</li>
                                    <li><a href="<?php echo URL::site('user/profile') ?>">Profile</a></li>
                                    <li><a href="<?php echo URL::site('user/change') ?>">Change Password</a></li>
                                </ul>
                            </li>
                            <li> <a href="<?php echo URL::site('auth/logout') ?>">Logout</a> </li>
                        <?php else : ?>
                            <li> <a href="<?php echo URL::site('auth/login') ?>">Login</a> </li>
                            <li> <a href="<?php echo URL::site('auth/register') ?>">Register</a> </li>
                        <?php endif; ?>
                    </ul>
                </div><!--/.nav-collapse -->
            </div>
        </div>
    </div>

    <div class="container">

        <!-- Main hero unit for a primary marketing message or call to action -->
        <div class="hero-unit">
            <?php if (isset($content)) { echo $content; } ?>
        </div>

        <?php if (isset($foot)) { echo $foot; } ?>

        <hr>

        <footer>
            <p>&copy; Copyright 2012 - 2013 - Entwickelt von m.reschke mit Kohana Framework (v3.3 Stable)
                - <?php echo $site['name'] . ' v' . $site['version'] ?> </p>
        </footer>

    </div> <!-- /container -->

    <?php foreach ($scripts as $file) echo HTML::script($file), PHP_EOL ?>
</body>

</html>